#!/bin/bash
set -e

echo $PATH

mongo --port 27017 << EOF
use lagou_resume; 
for(var i=1;i<= 1000;i++) { 
    db.lg_resume_datas.insert({
        "name":"test"+i, salary:(Math.random()*20000).toFixed(2)
    }); 
}
EOF